/*
* Copyright (c) 2016 . All Rights Reserved.
*/
package com.cgmnx.admin.web.model.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author: created  Date: 16/12/13 Time: 下午5:03
 * @version: 1.0
 */
@Setter
@Getter
@ToString
public class ResourceParam {

    @NotNull(message = "父节点不能为空")
    private Integer parentId;
    /**
     * 资源名称
     */
    @NotBlank(message = "资源名称不能为空")
    private String name;

    /**
     * 资源的ur
     */
    @NotBlank(message = "资源不能为空")
    private String uri;

    /**
     * 描述
     */
    private String description;

    /**
     * 类型
     */
    private Integer showTypeCode;

    /**
     * 权重
     */
    private Integer sort = 1;

    private Integer id;

}